using System;
using System.Data.Services.Client;
using Microsoft.Practices.RecipeFramework.Extensions.Editors.ClassBrowser;

namespace PrismGuidancePackage.Editors
{
    public class DataContextBrowserEditor : ClassBrowserEditor
    {
        protected override bool ShouldInclude(Type candidate)
        {
            return (candidate.IsSubclassOf(typeof (DataServiceContext)) && candidate.IsClass && candidate.IsPublic && !candidate.IsAbstract);
        }
    }
}